package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class SqlParameterDeclaration {

    private int beginIndex;
    private int endIndex;
    private ParameterMode parameterMode;
    private Identifier sqlParameterName;
    private ParameterType parameterType;
    private boolean result;

    public SqlParameterDeclaration(int beginIndex,
                                   int endIndex,
                                   ParameterMode parameterMode,
                                   Identifier sqlParameterName,
                                   ParameterType parameterType,
                                   boolean result) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.parameterMode = parameterMode;
        this.sqlParameterName = sqlParameterName;
        this.parameterType = parameterType;
        this.result = result;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public ParameterMode getParameterMode() {
        return parameterMode;
    }

    public Identifier getSqlParameterName() {
        return sqlParameterName;
    }

    public ParameterType getParameterType() {
        return parameterType;
    }

    public boolean isResult() {
        return result;
    }

}
